<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <link href="css/public.css" type="text/css" rel="stylesheet">
        <link href="css/houtai.css" type="text/css" rel="stylesheet">
        <link href="css/smartMenu.css" type="text/css" rel="stylesheet">
        <title>个人后台管理</title>
    	  <script type="text/javascript">
    	  		var flag="ok";
    	  		//避免产生重复的节点，存在则删除。
    	  		function deleteChild(){
    	  			var elem=document.getElementById("FirstValue");
	  				if(elem!=null){
		  				elem.parentNode.removeChild(elem);
	  				}
    	  		}
    	  		//点击菜单栏，后台导航显示其文本值
	  			function method(obj){
	  				var x=document.getElementById("SelectValue");
	  				x.innerText=obj.innerText;
	  				deleteChild();
	  			}
    	  		//点击菜单子选项，后台导航显示其文本值
	  			function method2(obj){
	  				if(obj.innerHTML!=flag){
	  					deleteChild();
		  				var x=document.getElementById("breadcrumbs-three");  
		  				var y=document.getElementById("ad-iframe");
		  				var pageName=obj.id+".jsp";
			  			y.innerHTML="<iframe class='J_iframe' name='iframe0' width='100%' height='100%' src='"+pageName+"' frameborder='' data-id='' seamless></iframe>";
		  				var li=document.createElement("li");
		  				li.id="FirstValue";
		  				var a=document.createElement("a");
		  				a.href="#";
		  				a.className="dot";
		  				a.id="SecondValue";
		  				a.innerHTML=obj.innerHTML;
		  				li.appendChild(a);
		  				x.appendChild(li);
	  				}
	  			}
	  	  </script>
    </head>
    <body>
    	<div id="admin">
    		<div class="ad-menu" id="ad-menu">
                <div class="ad-logo"><img src="image/logo.jpg" height="150" width="220" ></div>
                <div class="ad-list">
                    <ul>
                        <li>
                            <div onclick="method(this)" class="li-item"><em class="scm li-ico ic1"></em>页面选择<span class="scm arrow"></span></div>
                            <dl>
                                <dd>
                                    <a id="index" onclick="method2(this)" href="../home/index.jsp" class="dd-item">首页<span class="scm dd-ar"></span></a>
                                </dd>
                           		 <dd>
                                    <a id="search" onclick="method2(this)" href="../home/index.jsp" class="dd-item">搜索页面<span class="scm dd-ar"></span></a>
                                </dd>
                                 <dd>
                                    <a id="add" onclick="method2(this)" href="../home/single.jsp" class="dd-item">发布兼职页面<span class="scm dd-ar"></span></a>
                                </dd>
                              
                            </dl>
                        </li>
                        <li>
                            <div onclick="method(this)" class="li-item"><em class="scm li-ico ic2"></em>用户管理<span class="scm arrow"></span></div>
                            <dl>
                                <dd>
                                    <a id="UserInfo" onclick="method2(this)" href="#" class="dd-item">用户个人资料信息<span class="scm dd-ar"></span></a>
                                </dd>
                                <dd>
                                    <a id="deal" onclick="method2(this)" href="#" class="dd-item">用户处理<span class="scm dd-ar"></span></a>
                                </dd>
                            </dl>
                        </li>
                        <li>
                            <div onclick="method(this)" class="li-item"><em class="scm li-ico ic3"></em>收藏<span class="scm arrow"></span></div>
                            <dl>
                                <dd>
                                    <a id="shenhe" onclick="method2(this)" class="dd-item">收藏页面<span class="scm dd-ar"></span></a>
                                </dd>
                               
                            </dl>
                        </li>
                        <li>
                            <div  onclick="method(this)" class="li-item"><em class="scm li-ico ic7"></em>系统消息<span class="scm arrow"></span></div>
                            <dl>
                                <dd>
                                    <a id="notice" onclick="method2(this)" href="#" class="dd-item">发布新公告<span class="scm dd-ar"></span></a>
                                </dd>
                                <dd>
                                    <a id="cancel" onclick="method2(this)" href="#" class="dd-item">撤销公告<span class="scm dd-ar"></span></a>
                                </dd>
                            </dl>
                        </li>
                    </ul>
                </div>
            </div>
    		<div class="ad-comment-box" id="ad-comment">
                <div class="ad-top-comment">
                    <div class="ad-message">
                        <div class="ad-top-left">
                            <div class="ad-change-btn"><a id="ad-list" href="javascript:;" class="scm ad-list-btn"></a></div>
                            <div class="ad-search-box clear">
                                
                            </div>
                        </div>
                        <div class="ad-top-right">
                            <div class="ad-notice">
                                <ul>
                                    <li>
                                        <a href="javascript:;" class="scm nt1"><span class="scm nt-count dot">12</span></a>
                                    </li>
                                    <li>
                                        <a href="javascript:;" class="scm nt2"><span class="scm nt-count dot">12</span></a>
                                    </li>
                                    <li>
                                        <a href="javascript:;" class="scm nt3"><span class="scm nt-count dot">12</span></a>
                                    </li>
                                </ul>
                            </div>
        
                        </div>
                    </div>
                    <div class="ad-main-nav-box">
                        <ul id="breadcrumbs-three">
                            <li title="首页"><a href="javascript:;" class="dot" id="SelectValue">首页</a></li>
                        </ul>
                        <div class="ad-main-wraper .J_menuItems">
                            <ul class="ad-main-list" id="ad-main">
                            </ul>
                        </div>
                    </div>
                </div>
	                <div class="ad-main-comment J_mainContent" id="ad-iframe" style="float:left; width:900px; height:100px; border-right:2px ">
	                    <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="index_v0.html" frameborder="0" data-id="shenhe.html" seamless></iframe>
	                </div>
	                 <div style="float:left; width:220px; height:430px; border-right:2px; border-top:2px ; border-bottom:2px ;">
	                 <div class="ad-welcom">
                                <div class="ad-wel-img"><img src="image/hs.jpg" height="35" width="35"></div>
                                <div class="ad-wel-text">
                                    <div class="font-wel">欢迎您！<strong>用户：<%=request.getSession().getAttribute("uEmail") %></strong></div>
                                    <div class="font-wel"><a  href="javascript:;"><strong>【退出】</strong></a></div>
                                </div>
                            </div>
	                 </div>      
    	</div>
        <script type="text/javascript" src="js/jquery.min.js"></script>
        <script type="text/javascript" src="js/contabs.js"></script>
        <script type="text/javascript" src="js/maintabs.js"></script>
        <script type="text/javascript" src="js/jquery-smartMenu-min.js"></script>
        <script type="text/javascript" src="js/jquery.nicescroll.min.js"></script>
        <script type="text/javascript">
            $(function(){
                $(".ad-menu").niceScroll({cursorborder:"0 none",cursorcolor:"#1a1a19",cursoropacitymin:"0",boxzoom:false});
            });
        </script>
    </body>
</html>